const {merge} =require('webpack-merge');
const baseConfig =require('./webpack.base.js');
const path =require('path');
const SpeedMeasurePlugin = require("speed-measure-webpack-plugin");
const smp = new SpeedMeasurePlugin();

module.exports=smp.wrap(merge(baseConfig,{
  mode: 'development',
  devtool: "cheap-module-source-map",
  devServer:{
    hot:true,
    port:9000,
    open:true,
    historyApiFallback: true,
    // static: {
    //   directory:path.join(__dirname, "../dist"),
    // },
    
  },
}))